MailPoet\Automation\Engine\Storage\AutomationStorage S

Total Complexity 50
Dependencies 6
Dependents 26
Total lines 447
Lines of code 379
Logical lines of code 124
Comment lines 26
Methods 20
Properties 5

Methods 20

Method Rating Maintainability Complexity Lines of code
insertAutomationTriggers()
A
45 7 50
deleteAutomation()
S
48 6 38
getAutomationIdsBySubject()
S
50 4 30
getAutomation()
S
55 4 23
getAutomationWithDifferentVersions()
S
51 3 31
truncate()
S
59 4 15
updateAutomation()
S
60 4 13
getAutomations()
S
52 2 26
getAutomationVersionDates()
S
56 2 20
insertAutomationVersion()
S
60 2 14
createAutomation()
S
60 2 13
getActiveAutomationsByTriggerKey()
S
54 1 28
getCountOfActiveByTriggerKeysAndAction()
S
53 1 28
getActiveTriggerKeys()
S
61 1 17
getNameColumnLength()
S
68 2 7
__construct()
S
66 1 8
getActiveAutomationsByTrigger()
S
80 1 3
getAutomationHeaderData()
S
73 1 5
getAutomationCount()
S
71 1 6
throwDatabaseError()
S
76 1 4